#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Time: 2018/1/4 下午2:31
@Author: CZC
@File: object_config.py
"""
from parser.parse_gsxt_worker import ParseGsxtWorker

__all__ = ['GsxtParseGsxtWorker']


def create_parse_object(config_dict):
    clazz = config_dict.get('clazz', '')
    if clazz == '':
        raise StandardError("no worker for {config_dict}".format(config_dict=config_dict))

    return eval(clazz)(**config_dict)
